    <div class="container top">
            <?php 
           
           if($state == 0){
               echo'
               <div class="alert  alert-error">
               <button type="button" class="close" data-dismiss="alert">&times;</button>
                    <h4>ERROR!</h4>
                      '.$message.'
                </div>';
           }
           else {
                echo'
               <div class="alert alert-success">
               <button type="button" class="close" data-dismiss="alert">&times;</button>
                    <h4>Alert!</h4>
                      '.$message.'
                </div>';
           }

        ?>
      
      <ul class="breadcrumb">
        <li>
          <a href="<?php echo site_url("admin"); ?>">
            <?php echo ucfirst($this->uri->segment(1));?>
          </a> 
          <span class="divider">/</span>
        </li>
        <li>
          <a href="<?php echo site_url("admin").'/'.$this->uri->segment(2); ?>">
            <?php echo ucfirst($this->uri->segment(2));?>
          </a> 
          <span class="divider">/</span>
        </li>
        <li class="active">
          <a href="#">Update</a>
        </li>
      </ul>
      
      <div class="page-header">
        <h2>
          Updating <?php echo ucfirst($this->uri->segment(2));?>
        </h2>
      </div>

 
      <?php
      //flash messages
      if($this->session->flashdata('flash_message')){
        if($this->session->flashdata('flash_message') == 'updated')
        {
          echo '<div class="alert alert-success">';
            echo '<a class="close" data-dismiss="alert">×</a>';
            echo '<strong>Well done!</strong> department updated with success.';
          echo '</div>';       
        }else{
          echo '<div class="alert alert-error">';
            echo '<a class="close" data-dismiss="alert">×</a>';
            echo '<strong>Oh snap!</strong> change a few things up and try submitting again.';
          echo '</div>';          
        }
      }
      ?>
      <?php
        $attributes = array('class' => 'form-horizontal', 'id' => '');
        $options_manufacture = array('' => "Select");
    echo validation_errors();
        date_default_timezone_set('America/Los_Angeles');
        echo form_open('index.php/workon/update/'.$this->uri->segment(4).'', $attributes);
        
      ?>
       
       <fieldset>
          <div class="control-group">
            <label for="dept_id" class="control-label">EMP_ID:</label>
            <div class="controls">
                <input type="text"  id="empp_id" name="empp_id" value="<?php echo $workon[0]; ?>" placeholder="EMP ID">
              
            </div>
          </div>
           <div class="control-group">
            <label for="inputError" class="control-label">DEP_ID:</label>
            <div class="controls">
              <input type="text" id="proj_id" name="proj_id" value="<?php echo $workon[1]; ?>"  placeholder="Pro ID">
           
           
          <div class="form-actions">
            <button class="btn btn-primary" type="submit">Save changes</button>
            <button class="btn" type="reset">Reset</button>
            <a  href="<?php echo base_url("index.php/workon/") ?>" class="btn">Cancel</a>
          </div>
        </fieldset>

      <?php echo form_close(); ?>

    </div>
     